package org.qs.webservice.service;

import java.util.Date;

public interface IreadMemcacheService {
	public Object get(String key);
      
    public boolean set(String key,int time, Object value);
    public boolean replace(String key,int time, Object value);
      
    public boolean delete(String key);
	
	/**
	 * 设置用户登录缓存
	 * @Title: setSignIn 
	 * @param key 手机号/用户名
	 * @param value 验证码
	 * @return   
	 * @return boolean    
	 * @throws
	 */
	public boolean setUserSignIn(String key,Object value);
	/**
	 * 获取用户登录缓存
	 * @Title: getSignIn 
	 * @param key 手机号/用户名
	 * @param value 验证码
	 * @return   
	 * @return boolean    
	 * @throws
	 */
	public Object getUserSignIn(String key);
	/**
	 * 设置忘记密码还纯
	 * @param key
	 * @param value
	 * @return
	 */
	public boolean setUserRestPsswd(String key,Object value);
	/**
	 * 获取忘记密码缓存
	 * @param key
	 * @return
	 */
	public Object getUserRestPsswd(String key);
	/**
	 * 删除sign缓存
	 * @param key
	 * @return
	 */
	public boolean deleteUserRestPsswd(String key);
	/**
	 * 获取评论key
	 * @param key
	 * @return
	 */
	public Object getBookReview(String key);
	
	/**
	 * 设置评论key
	 * @param key
	 * @return
	 */
	public boolean setetBookReview(String key,String value);
	
	/**
	 * 获取评论key
	 * @param key
	 * @return
	 */
	public Object getBookReviewReply(String key);
	
	/**
	 * 设置评论key
	 * @param key
	 * @return
	 */
	public boolean setetBookReviewReply(String key,String value);

   
}
